package com.kuangstudy.collection.list;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName: Demo3
 * date: 2021/07/12 12:35:22
 *
 * @author zlk
 */
public class Demo3 {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add(10);
        list.add(20);
        list.add(30);
        list.add(40);
        System.out.println(list);
//        list.remove((Object)20);
//        System.out.println(list);
        List list1 = list.subList(1, 3);
        System.out.println(list1);

    }
}
